package com.tepth.vehiclemaintenance.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhangyu on 2017/4/18.
 */

public class ChooseOperator implements Serializable{

    /**
     * Id : 1
     * Code : 01
     * Name : 发动机系
     * ListTroubleType : [{"Id":182,"Code":"","Name":"储气筒单向阀坏","IsPublic":true,"ListProcess":[{"Id":524,"Operation":{"Id":2,"Code":"02","Name":"更换"},"Name":"储气筒","UseCount":1,"Percentage":10,"Component":null,"Accessory":{"Id":50,"Code":"0050","Name":"储气筒","Unit":"个"}},{"Id":527,"Operation":{"Id":5,"Code":"05","Name":"拆检"},"Name":"储气筒单向阀","UseCount":1,"Percentage":10,"Component":null,"Accessory":{"Id":51,"Code":"0051","Name":"储气筒单向阀","Unit":"个"}}]}]
     */

    private int Id;
    private String Code;
    private String Name;
    private List<ListTroubleTypeBean> ListTroubleType;

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public String getCode() {
        return Code;
    }

    public void setCode(String Code) {
        this.Code = Code;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public List<ListTroubleTypeBean> getListTroubleType() {
        return ListTroubleType;
    }

    public void setListTroubleType(List<ListTroubleTypeBean> ListTroubleType) {
        this.ListTroubleType = ListTroubleType;
    }

    public static class ListTroubleTypeBean implements Serializable{
        /**
         * Id : 182
         * Code :
         * Name : 储气筒单向阀坏
         * IsPublic : true
         * ListProcess : [{"Id":524,"Operation":{"Id":2,"Code":"02","Name":"更换"},"Name":"储气筒","UseCount":1,"Percentage":10,"Component":null,"Accessory":{"Id":50,"Code":"0050","Name":"储气筒","Unit":"个"}},{"Id":527,"Operation":{"Id":5,"Code":"05","Name":"拆检"},"Name":"储气筒单向阀","UseCount":1,"Percentage":10,"Component":null,"Accessory":{"Id":51,"Code":"0051","Name":"储气筒单向阀","Unit":"个"}}]
         */

        private int Id;
        private String Code;
        private String Name;
        private boolean IsPublic;
        boolean hasSelected;
        private List<ListProcessBean> ListProcess;


        public boolean isHasSelected() {
            return hasSelected;
        }

        public void setHasSelected(boolean hasSelected) {
            this.hasSelected = hasSelected;
        }

        public int getId() {
            return Id;
        }

        public void setId(int Id) {
            this.Id = Id;
        }

        public String getCode() {
            return Code;
        }

        public void setCode(String Code) {
            this.Code = Code;
        }

        public String getName() {
            return Name;
        }

        public void setName(String Name) {
            this.Name = Name;
        }

        public boolean isIsPublic() {
            return IsPublic;
        }

        public void setIsPublic(boolean IsPublic) {
            this.IsPublic = IsPublic;
        }

        public List<ListProcessBean> getListProcess() {
            return ListProcess;
        }

        public void setListProcess(List<ListProcessBean> ListProcess) {
            this.ListProcess = ListProcess;
        }

        public static class ListProcessBean implements Serializable{
            /**
             * Id : 524
             * Operation : {"Id":2,"Code":"02","Name":"更换"}
             * Name : 储气筒
             * UseCount : 1
             * Percentage : 10
             * Component : null
             * Accessory : {"Id":50,"Code":"0050","Name":"储气筒","Unit":"个"}
             */

            private int Id;
            private OperationBean Operation;
            private String Name;
            private int UseCount;
            private int Percentage;
            private AccessoryBean Component;
            private AccessoryBean Accessory;
            boolean isChecked;
            private String personName;

            public String getPersonName() {
                return personName;
            }

            public void setPersonName(String personName) {
                this.personName = personName;
            }

            public boolean isChecked() {
                return isChecked;
            }

            public void setChecked(boolean checked) {
                isChecked = checked;
            }

            public int getId() {
                return Id;
            }

            public void setId(int Id) {
                this.Id = Id;
            }

            public OperationBean getOperation() {
                return Operation;
            }

            public void setOperation(OperationBean Operation) {
                this.Operation = Operation;
            }

            public String getName() {
                return Name;
            }

            public void setName(String Name) {
                this.Name = Name;
            }

            public int getUseCount() {
                return UseCount;
            }

            public void setUseCount(int UseCount) {
                this.UseCount = UseCount;
            }

            public int getPercentage() {
                return Percentage;
            }

            public void setPercentage(int Percentage) {
                this.Percentage = Percentage;
            }

            public AccessoryBean getComponent() {
                return Component;
            }

            public void setComponent(AccessoryBean Component) {
                this.Component = Component;
            }

            public AccessoryBean getAccessory() {
                return Accessory;
            }

            public void setAccessory(AccessoryBean Accessory) {
                this.Accessory = Accessory;
            }

            public static class OperationBean implements Serializable{
                /**
                 * Id : 2
                 * Code : 02
                 * Name : 更换
                 */

                private int Id;
                private String Code;
                private String Name;

                public OperationBean() {
                }

                public OperationBean(String name) {
                    Name = name;
                }

                public int getId() {
                    return Id;
                }

                public void setId(int Id) {
                    this.Id = Id;
                }

                public String getCode() {
                    return Code;
                }

                public void setCode(String Code) {
                    this.Code = Code;
                }

                public String getName() {
                    return Name;
                }

                public void setName(String Name) {
                    this.Name = Name;
                }
            }

            public static class AccessoryBean implements Serializable{
                public AccessoryBean( String unit,String name) {
                    Name = name;
                    Unit = unit;
                }

                public AccessoryBean() {
                }

                /**
                 * Id : 50
                 * Code : 0050
                 * Name : 储气筒
                 * Unit : 个
                 */

                private int Id;
                private String Code;
                private String Name;
                private String Unit;

                public int getId() {
                    return Id;
                }

                public void setId(int Id) {
                    this.Id = Id;
                }

                public String getCode() {
                    return Code;
                }

                public void setCode(String Code) {
                    this.Code = Code;
                }

                public String getName() {
                    return Name;
                }

                public void setName(String Name) {
                    this.Name = Name;
                }

                public String getUnit() {
                    return Unit;
                }

                public void setUnit(String Unit) {
                    this.Unit = Unit;
                }
            }
        }
    }
}
